#include "mainwindow.h"
#include <QApplication>

#include <QStyleFactory>
int main(int argc, char *argv[])
{
    QApplication::setAttribute(Qt::AA_EnableHighDpiScaling);
    QApplication a(argc, argv);

    QFile file(":/styles/ModernStyle.qss");
    if (file.open(QFile::ReadOnly)) {
        QString styleSheet = file.readAll();
        a.setStyleSheet(styleSheet);
        qDebug() << "全局样式表已加载";
    } else {
        qDebug() << "QSS加载失败：" << file.errorString();
    }
    MainWindow w;
    w.show();
    return a.exec();
}

/*/* QCheckBox */
//QCheckBox {
//    spacing: 8px;
//    outline: none;
//}
//QCheckBox::indicator {
//    width: 16px;
//    height: 16px;
//    border-radius: 3px;
//    background: white;
//    border: 1px solid #D9D9D9;
//}
//QCheckBox::indicator:checked {
//    background: #4A90E2;
//    border-color: #4A90E2;
//}
//QCheckBox::indicator:hover {
//    border-color: #a0a0a0;
//}

